home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3046 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.7 KB  |  50 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.sprintlink.net!eskimo!news
  3. From: marksi@eskimo.com (Mark Simonton)
  4. Subject: Re: VC++ v.4.0 conversion problems
  5. X-Nntp-Posting-Host: tia1.eskimo.com
  6. Message-ID: <310296c9.15122432@eskinews.eskimo.com>
  7. Sender: news@eskimo.com (News User Id)
  8. Organization: Eskimo North (206) For-Ever
  9. X-Newsreader: Forte Agent .99c/16.141
  10. References: <4dls1n$ldp@eagle.novo.dk>
  11. Date: Sun, 21 Jan 1996 19:51:52 GMT
  12.  
  13. Just a guess...
  14.  
  15. On Thu, 18 Jan 1996 16:23:20 GMT, morb@novo.dk (Morten Brun) wrote:
  16.  
  17. >I am having a lot of problems when compiling under v.4. as I am etting
  18. >
  19. >a lot of conversions errors due to the new behavior of v.4 like:
  20. >-----------------------------------------------------------------------------
  21. >LPWSTR                    lpszName;
  22. >
  23. >GetPrivateProfileStringA("x", "y", "",lpszName, sizeof(lpszName),
  24. >\\xxx.INI");
  25.  ^ is there a '"' missing here?
  26. >
  27. >error c26664: cannot convert parm. 4 from unsigned short * to char *
  28. >---------------------------------------------------------------------------------
  29. >or
  30. >error C2446: '=' : no conversion from 'char *' to 'unsigned char *'
  31. >error C2664: 'wcstombs' : cannot convert parameter 1 from 'unsigned
  32. >char [32]' error C2664: 'mbstowcs' : cannot convert parameter 2 from
  33. >'unsigned char *' to 'const char *'
  34. >error C2664: 'ctime' : cannot convert parameter 1 from 'unsigned long
  35. >*' to 'const long *'
  36. >----------------------------------------------------------------------------------------
  37. >As I am e new to C++ and VC++ I have serious trouble in getting these
  38. >functions to work. Are there anybody which please could give me some
  39. >good ideas of how I without to much work can get my program to work ??
  40. >
  41. >Regards Morten
  42. >
  43. >
  44. >
  45. >Morten Brun
  46. >Novo Nordisk IT, Denmark
  47. >morb@novo.dk
  48. >
  49.  
  50.